//
//  BaseDemoVC.h
//  JAGatherAdDemo
//
//  Created by Yc on 2022/4/24.
//

#import <UIKit/UIKit.h>
#import "Header.h"
#import "PlacementEvent.h"

typedef  NS_ENUM(NSInteger,DataType){
    DataType_splash,
    DataType_banner,
    DataType_fullScreenVideo,
    DataType_interstitial,
    DataType_nativeExpress,
    DataType_rewardVideo,
};

NS_ASSUME_NONNULL_BEGIN

@interface BaseDemoVC : UIViewController

@property (nonatomic, assign) BOOL isLoaded;

@property (nonatomic, strong) NSMutableArray *placementList;

- (void)loadAdAction;

- (void)showAdAction;

- (void)loadAndShowAdAction ;

- (void)loadMoreAction;

- (void)onlyLoadAndShowType:(BOOL)type;

- (CGFloat)getNativeListAdButtonMaxY;

- (void)writePlacementDataOfType:(DataType)type;

- (NSArray *)readPlacementDataOfType:(DataType)type;

- (void)setupPlacement:(NSString *)placement;

- (NSString *)getPlacement;

- (void)showNativeListAdButton;

@end

NS_ASSUME_NONNULL_END
